//
//  DebugLogHeader.h
//  CenturyInterconnection
//
//  Created by l-sheng on 16/5/31.
//  Copyright © 2016年 Shanghai DuRui Information Technology Company. All rights reserved.
//

#ifndef DebugLogHeader_h
#define DebugLogHeader_h



// 自定义打印

#define SG_LOG(...) NSLog(__VA_ARGS__);
#define SG_LOG_METHOD NSLog(@"%s", __func__);
#define SG_LOG_POINT(p) NSLog(@"___SG_LOG_POINT___%.1f, %.1f", p.x, p.y);
#define SG_LOG_SIZE(s) NSLog(@"___SG_LOG_SIZE___%.1f, %.1f", s.width, s.height);
#define SG_LOG_RECT(f) NSLog(@"___SG_LOG_RECT___%.1f, %.1f, %.1f, %.1f", f.origin.x, f.origin.y, f.size.width, f.size.height);



//A better version of NSLog
//#define NSLog(format, ...) (do {
//    fprintf(stderr, "<%s : %d> %s\n", [[[NSString stringWithUTF8String:__FILE__] lastPathComponent] UTF8String], __LINE__, __func__);
//    (NSLog)((format), ##__VA_ARGS__);
//    fprintf(stderr, "-------\n");
//} while (0)
//)


#endif /* DebugLogHeader_h */
